package com.example.lockfulldemo.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.example.lockfulldemo.bo.ExcelExport;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Think
 */
public class EasyExcelDemoListener extends AnalysisEventListener<ExcelExport> {
    List<ExcelExport> list = new ArrayList<>();

    @Override
    public void invoke(ExcelExport excelExport, AnalysisContext analysisContext) {
        list.add(excelExport);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println(list);
    }
}
